package com.gzc.pm.dao;

import java.util.List;

import com.gzc.pm.bean.CPLRouteBean;

import cn.skyclass.ibatis.IBatisDao;
import cn.skyclass.net.OperationResult;

public class CPLRouteDao {

	private IBatisDao dao = new IBatisDao();
	
	public OperationResult deleteByAxleId(int axleId){
		return dao.executeDelete("CPLRoute.deleteByAxleId", axleId);
	}

	@SuppressWarnings("unchecked")
	public List<CPLRouteBean> getByAxleIds(String axleIds) {
		return dao.getList("CPLRoute.getByAxleIds", axleIds);
	}
	
	public OperationResult insert(CPLRouteBean bean){
		return dao.executeInsert("CPLRoute.insert", bean);
	}
	
	public OperationResult update(CPLRouteBean bean){
		return dao.executeInsert("CPLRoute.update", bean);
	}
	
	public OperationResult deleteById(int id){
		return dao.executeDelete("CPLRoute.deleteById", id);
	}
	
}
